import type { RouteRecordRaw } from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  path: '/vipIcon',
  component: Layout,
  redirect: '/vipIcon/index',
  name: 'vipIcon',
  meta: {
    title: '会员图标',
    icon: 'ph:image',
  },
  children: [
    {
      path: 'index',
      name: 'vipIconIndex',
      component: () => import('@/views/vipIconView/index.vue'),
      meta: {
        title: '会员图标列表',
        menu: false,
        breadcrumb: false,
        activeMenu: '/vipIcon',
      },
    },
    {
      path: 'detail',
      name: 'vipIconDetail',
      component: () => import('@/views/vipIconView/detail.vue'),
      meta: {
        title: '会员图标配置',
        auth: ['permission.browse'],
        menu: false,
        activeMenu: '/vipIcon',
      },
    },
  ],
}

export default routes
